package com.tongcao.cn.algorithm.designMoel.strategy;

/**
 * @author:tongcao
 * @since:2019/6/20 14:17
 * Description:
 */
public class Env implements Strategy {

    private Strategy strategy;

    public Env(Strategy strategy) {
        this.strategy = strategy;
    }

    @Override
    public int calculate(int num1, int num2) {
        return strategy.calculate(num1, num2);
    }
}